package linear_enumeration;

public class basic1486 {
    public int xorOperation(int n, int start) {
        int sum=start;
//       int [] nums=new int[n];
        for (int i = 0; i < n; i++) {
//            nums[i]=start+2*i;
            int a=start+2*i;
            sum=sum^a;
        }
        return sum;

    }


}
